package com.piaodekuai.flight.pojo;

import java.io.Serializable;
import java.util.Date;

public class Flight implements Serializable {
    private Integer fId;

    private String fNum;

    private String fPlanetype;

    private String fFromcity;

    private String fTocity;

    private String fFromairport;

    private String fToairport;

    private Date fStartdate;

    private Date fStartTime;

    private Date fEndTime;

    private String fRate;

    private Integer fBusinessClass;

    private Integer fEconomyClass;

    private Float fBusinessPrice;

    private Float fEconomyPrice;

    private Float fDiscount;

    private static final long serialVersionUID = 1L;

    public Integer getfId() {
        return fId;
    }

    public void setfId(Integer fId) {
        this.fId = fId;
    }

    public String getfNum() {
        return fNum;
    }

    public void setfNum(String fNum) {
        this.fNum = fNum == null ? null : fNum.trim();
    }

    public String getfPlanetype() {
        return fPlanetype;
    }

    public void setfPlanetype(String fPlanetype) {
        this.fPlanetype = fPlanetype == null ? null : fPlanetype.trim();
    }

    public String getfFromcity() {
        return fFromcity;
    }

    public void setfFromcity(String fFromcity) {
        this.fFromcity = fFromcity == null ? null : fFromcity.trim();
    }

    public String getfTocity() {
        return fTocity;
    }

    public void setfTocity(String fTocity) {
        this.fTocity = fTocity == null ? null : fTocity.trim();
    }

    public String getfFromairport() {
        return fFromairport;
    }

    public void setfFromairport(String fFromairport) {
        this.fFromairport = fFromairport == null ? null : fFromairport.trim();
    }

    public String getfToairport() {
        return fToairport;
    }

    public void setfToairport(String fToairport) {
        this.fToairport = fToairport == null ? null : fToairport.trim();
    }

    public Date getfStartdate() {
        return fStartdate;
    }

    public void setfStartdate(Date fStartdate) {
        this.fStartdate = fStartdate;
    }

    public Date getfStartTime() {
        return fStartTime;
    }

    public void setfStartTime(Date fStartTime) {
        this.fStartTime = fStartTime;
    }

    public Date getfEndTime() {
        return fEndTime;
    }

    public void setfEndTime(Date fEndTime) {
        this.fEndTime = fEndTime;
    }

    public String getfRate() {
        return fRate;
    }

    public void setfRate(String fRate) {
        this.fRate = fRate == null ? null : fRate.trim();
    }

    public Integer getfBusinessClass() {
        return fBusinessClass;
    }

    public void setfBusinessClass(Integer fBusinessClass) {
        this.fBusinessClass = fBusinessClass;
    }

    public Integer getfEconomyClass() {
        return fEconomyClass;
    }

    public void setfEconomyClass(Integer fEconomyClass) {
        this.fEconomyClass = fEconomyClass;
    }

    public Float getfBusinessPrice() {
        return fBusinessPrice;
    }

    public void setfBusinessPrice(Float fBusinessPrice) {
        this.fBusinessPrice = fBusinessPrice;
    }

    public Float getfEconomyPrice() {
        return fEconomyPrice;
    }

    public void setfEconomyPrice(Float fEconomyPrice) {
        this.fEconomyPrice = fEconomyPrice;
    }

    public Float getfDiscount() {
        return fDiscount;
    }

    public void setfDiscount(Float fDiscount) {
        this.fDiscount = fDiscount;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fId=").append(fId);
        sb.append(", fNum=").append(fNum);
        sb.append(", fPlanetype=").append(fPlanetype);
        sb.append(", fFromcity=").append(fFromcity);
        sb.append(", fTocity=").append(fTocity);
        sb.append(", fFromairport=").append(fFromairport);
        sb.append(", fToairport=").append(fToairport);
        sb.append(", fStartdate=").append(fStartdate);
        sb.append(", fStartTime=").append(fStartTime);
        sb.append(", fEndTime=").append(fEndTime);
        sb.append(", fRate=").append(fRate);
        sb.append(", fBusinessClass=").append(fBusinessClass);
        sb.append(", fEconomyClass=").append(fEconomyClass);
        sb.append(", fBusinessPrice=").append(fBusinessPrice);
        sb.append(", fEconomyPrice=").append(fEconomyPrice);
        sb.append(", fDiscount=").append(fDiscount);
        sb.append("]");
        return sb.toString();
    }
}